﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SMS_Server
{
    public class Action_Insert : Incoming_Action
    {
        public int actionID = 0;
        public string ActionName;
        public string ActionFormat;
        public Connectors Connector;
        public string ConnectionString;
        public string TableName;
        public string Columns;//Comma seperated column names
        public bool HasResponse;
        public string ResponseColumns;//Comma seperated list of response column names
        public string ResponseFormat; 
        //Use reserved word, [PhoneNumber] for the phone number and [Date] for date time parameter


        public enum Connectors
        {
            SQL, OleDb, Odbc
        }

        public ActionTypes ActionType()
        {
            return ActionTypes.Insert;
        }

        public override string ToString()
        {
            return ActionType().ToString();
        }

        public long ActionID()
        {
            return (long)actionID;
        }
    }
}
